import { configureStore } from "@reduxjs/toolkit";
import User from "./slices/usersSlice.ts";
import Product from "./slices/productsSlice.ts";

export const store = configureStore({
  reducer: {
    users: User,
    products: Product,
  },
});

export type RootState = ReturnType<typeof store.getState>;

export type AppDispatch = typeof store.dispatch;
